$OpenBSD: patch-libclamav_str_c,v 1.11 2014/11/19 00:18:01 sthen Exp $

allow for machine arch where char is unsigned by default (e.g. arm, powerpc)

--- libclamav/str.c.orig	Tue Jul  8 15:50:23 2014
+++ libclamav/str.c	Wed Jul  9 00:58:02 2014
@@ -166,9 +166,9 @@ int cli_hex2str_to(const char *hex, char *ptr, size_t 
 
     for(i = 0; i < len; i += 2) {
 	if((c = cli_hex2int(hex[i])) >= 0) {
-	    val = c;
+	    val = (char)c;
 	    if((c = cli_hex2int(hex[i+1])) >= 0) {
-		val = (val << 4) + c;
+		val = (val << 4) + (char)c;
 	    } else {
 		return -1;
 	    }
